package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.MatRepair;
import com.indusfo.spc.pojo.OrderRepair;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author liub
 * @Date 2019/11/27 9:30
 * @Version 1.0
 */

public interface OrderRepairMapper {
    /**
     * 新增
     */
    int insertOrderRepair(OrderRepair orderRepair);

    /**
     * 修改
     */
    int updateOrderRepair(OrderRepair orderRepair);

    /**
     * 查询
     */
    List<OrderRepair> queryOrderRepair(OrderRepair orderRepair);

    /**
     * 总数
     */
    int countOrderRepair(OrderRepair orderRepair);

    /**
     * 判重
     */
    int checkOrderRepair(OrderRepair orderRepair);

    /**
     * 启停
     */
    int deleteOrderRepair(@Param("orderRepairIds") List<Integer> orderRepairIds, @Param("dataState") Integer dataState);

    int insertOrderRepairByMatRepairList(@Param("matRepairList") List<MatRepair> matRepairList);
}